package com.eduction.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.target.dao.ObservationPointRepository;
import com.eduction.modules.target.entity.ObservationPoint;
import com.eduction.service.ObservationPointService;

@Service
public class ObservationPointServiceImpl implements ObservationPointService {

	@Autowired
	private ObservationPointRepository observationPointRepository;


	@Override
	public ObservationPoint queryObservationPointByPid(String pid) throws SQLException {
		return this.observationPointRepository.queryObservationPointByPid(pid);
	}

	@Override
	public void saveObservationPointInfo(ObservationPoint o) {
		
		this.observationPointRepository.saveObservationPointInfo(o);
	}

	@Override
	public List<ObservationPoint> queryObservationPointByFid(String fid) throws SQLException {
		return this.observationPointRepository.queryObservationPointByFid(fid);
	}

	@Override
	public List<ObservationPoint> queryObservationPointByFidAndType(String fid, String typeid) throws SQLException {
		// TODO Auto-generated method stub
		return this.observationPointRepository.queryObservationPointByidAndType(fid, typeid);
	}


	

}
